package com.cjst.dao.mapper.sys;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.cjst.dao.mapper.base.BaseMapper;
import com.cjst.dao.mapper.impl.base.BaseMapperImpl;
import com.cjst.pojo.sys.FileInfo;

@Mapper
public interface FileInfoMapper extends BaseMapper<FileInfo, String>{

	
	@Update({"<script>" +
			"update t_file set foreign_id="+"#{id}"+" where id in"+
            "<foreach collection=\"imgs\" item=\"item\" open=\"(\" separator=\",\" close=\")\">" +
            "#{item}"+
            "</foreach>" +
            "</script>"})
	public void updateList(@Param("id") String id, @Param("imgs") List<String> imgs);
}
